package com.xwdeshj.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 * 景区——景区图集信息
 */
@Entity(name = "xw_scenic_atlasinfo")
public class XwScenicAtlasinfo {

    /**
     * 景区图集id
     */
    @Column(name = "scenic_atlas_id")
    private Integer scenicAtlasId;

    /**
     * 商家加密id
     */
    @Column(name = "business_encryptId")
    private String businessEncryptid;

    /**
     * 景区加密id（店铺id）
     */
    @Column(name = "scenic_encryptId")
    private String scenicEncryptid;

    /**
     * 景区图集（可多图上传）
     */
    @Column(name = "scenicatlas_img")
    private String scenicatlasImg;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "scenic_atlas_updatetime")
    private Date scenicAtlasUpdatetime;

    /**
     * 添加时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "scenic_atlas_createtime")
    private Date scenicAtlasCreatetime;

    public XwScenicAtlasinfo(){

    }

    public XwScenicAtlasinfo(String businessEncryptid, String scenicEncryptid, String scenicatlasImg, Date scenicAtlasUpdatetime, Date scenicAtlasCreatetime) {
        this.businessEncryptid = businessEncryptid;
        this.scenicEncryptid = scenicEncryptid;
        this.scenicatlasImg = scenicatlasImg;
        this.scenicAtlasUpdatetime = scenicAtlasUpdatetime;
        this.scenicAtlasCreatetime = scenicAtlasCreatetime;
    }

    /**
     * 获取景区图集id
     *
     * @return scenic_atlas_id - 景区图集id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getScenicAtlasId() {
        return scenicAtlasId;
    }

    /**
     * 设置景区图集id
     *
     * @param scenicAtlasId 景区图集id
     */
    public void setScenicAtlasId(Integer scenicAtlasId) {
        this.scenicAtlasId = scenicAtlasId;
    }

    /**
     * 获取商家加密id
     *
     * @return business_encryptId - 商家加密id
     */
    public String getBusinessEncryptid() {
        return businessEncryptid;
    }

    /**
     * 设置商家加密id
     *
     * @param businessEncryptid 商家加密id
     */
    public void setBusinessEncryptid(String businessEncryptid) {
        this.businessEncryptid = businessEncryptid;
    }

    /**
     * 获取景区加密id（店铺id）
     *
     * @return scenic_encryptId - 景区加密id（店铺id）
     */
    public String getScenicEncryptid() {
        return scenicEncryptid;
    }

    /**
     * 设置景区加密id（店铺id）
     *
     * @param scenicEncryptid 景区加密id（店铺id）
     */
    public void setScenicEncryptid(String scenicEncryptid) {
        this.scenicEncryptid = scenicEncryptid;
    }

    /**
     * 获取景区图集（可多图上传）
     *
     * @return scenicatlas_img - 景区图集（可多图上传）
     */
    public String getScenicatlasImg() {
        return scenicatlasImg;
    }

    /**
     * 设置景区图集（可多图上传）
     *
     * @param scenicatlasImg 景区图集（可多图上传）
     */
    public void setScenicatlasImg(String scenicatlasImg) {
        this.scenicatlasImg = scenicatlasImg;
    }

    /**
     * 获取更新时间
     *
     * @return scenic_atlas_updatetime - 更新时间
     */
    public Date getScenicAtlasUpdatetime() {
        return scenicAtlasUpdatetime;
    }

    /**
     * 设置更新时间
     *
     * @param scenicAtlasUpdatetime 更新时间
     */
    public void setScenicAtlasUpdatetime(Date scenicAtlasUpdatetime) {
        this.scenicAtlasUpdatetime = scenicAtlasUpdatetime;
    }

    /**
     * 获取添加时间
     *
     * @return scenic_atlas_createtime - 添加时间
     */
    public Date getScenicAtlasCreatetime() {
        return scenicAtlasCreatetime;
    }

    /**
     * 设置添加时间
     *
     * @param scenicAtlasCreatetime 添加时间
     */
    public void setScenicAtlasCreatetime(Date scenicAtlasCreatetime) {
        this.scenicAtlasCreatetime = scenicAtlasCreatetime;
    }

    @Override
    public String toString() {
        return "XwScenicAtlasinfo{" +
                "scenicAtlasId=" + scenicAtlasId +
                ", businessEncryptid='" + businessEncryptid + '\'' +
                ", scenicEncryptid=" + scenicEncryptid +
                ", scenicatlasImg='" + scenicatlasImg + '\'' +
                ", scenicAtlasUpdatetime=" + scenicAtlasUpdatetime +
                ", scenicAtlasCreatetime=" + scenicAtlasCreatetime +
                '}';
    }
}